<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>

<!DOCTYPE html>
<html lang="en">
<head>
<title>出口国管理</title>
<base href="<%=basePath%>">
<link rel="stylesheet" href="static/ace/css/bootstrap.css" />
<link rel="stylesheet" href="static/ace/css/font-awesome.css" />
<!-- text fonts -->
<link rel="stylesheet" href="static/ace/css/ace-fonts.css" />
<!-- ace styles -->
<link rel="stylesheet" href="static/ace/css/ace.css"
	class="ace-main-stylesheet" id="main-ace-style" />
<script type="text/javascript" src="static/js/jquery-1.7.2.js"></script>
<script type="text/javascript">
	$(top.hangge());
	
</script>
</head>
<body class="no-skin">
	
	<div class="main-container" id="main-container">
		
		<div class="main-content">
			<div class="main-content-inner">
				<div class="page-content">
					<div class="row">
						<div class="col-xs-12">
								<form  id="userForm" method="post">
									
									<div id="zhongxin" style="padding-top: 13px;">
									<table id="table_report" class="table table-striped table-bordered table-hover">
										<tr>
											<td style="width:79px;text-align: right;padding-top: 13px;">出口国代码:</td>
											<td><input type="text" name="EXPORT_COUNTRY_CODE"  value="${pd.EXPORT_COUNTRY_CODE }" maxlength="32" placeholder="这里输入出口国代码" title="出口国代码" style="width:98%;"/></td>
										</tr>
										<tr>
											<td style="width:79px;text-align: right;padding-top: 13px;">英文名称:</td>
											<td><input type="text" name="ENGLISH_NAME"  value="${pd.ENGLISH_NAME }" maxlength="32" placeholder="这里输入英文名称" title="英文名称"  style="width:98%;"/></td>
										</tr>
										
					                    <tr>
											<td style="width:79px;text-align: right;padding-top: 13px;">中文名称:</td>
											<td><input type="text" name="CHINESE_NAME" value="${pd.CHINESE_NAME }" placeholder="这里输入中文名称" maxlength="64" title="中文名称" style="width:98%;"/></td>
										</tr>
										<tr>
											<td style="width:79px;text-align: right;padding-top: 13px;">检索码:</td>
											<td><input type="text" name="FAST_SEARCH_CODE"   value="${pd.FAST_SEARCH_CODE }"  maxlength="32" placeholder="这里输入姓名" title="姓名" style="width:98%;"/></td>
										</tr>
										
										
										<tr>
									<td style="width:79px;text-align: right;padding-top: 13px;">是否可用:</td>
									<td>
										<select name="ENABLE" title="是否可用" style="width:460px;height:30px;text-align: right;">
										<option value="1" <c:if test="${pd.ENABLE == '1' }">selected</c:if> >是</option>
										<option value="0" <c:if test="${pd.ENABLE == '0' }">selected</c:if> >否</option>
										</select>
									</td>
									  </tr>
									
										<tr>
											<td style="text-align: center;" colspan="10">
												<a class="btn btn-mini btn-primary" onclick="save('${pd.ID}');">保存</a>
												<a class="btn btn-mini btn-danger" onclick="top.Dialog.close();">取消</a>
											</td>
										</tr>
									</table>
									</div>
									<div id="zhongxin2" class="center" style="display:none"><br/><br/><br/><br/><img src="static/images/jiazai.gif" /><br/><h4 class="lighter block green"></h4></div>
								</form>
						</div>
						<!-- /.col -->
					</div>
					<!-- /.row -->
				</div>
				<!-- /.page-content -->
			</div>
		</div>
		<!-- /.main-content -->
	</div>
	
</body> 
<script type="text/javascript">
	function save(ID){
		
		$.ajax({
			type:"post",
			url:'<%=basePath%>export/addaexport?ID=' + ID,
			data:$("#userForm").serialize(),
			dataType:"text",
			success:function(data){
				top.Dialog.close()
				window.location.reload();	
			}
			
		})
		
	}
</script>
</html>